package com.parking.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2023年11月28日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_logs")
public class OrderLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单日志id
     */
    @TableId(value = "order_logs_id", type = IdType.AUTO)
    private Integer orderLogsId;

    /**
     * 订单id
     */
    @TableField("order_info_id")
    private Integer orderInfoId;

    /**
     * 订单编号
     */
    @TableField("order_info_num")
    private String orderInfoNum;

    /**
     * 日志描述
     */
    @TableField("order_logs_describe")
    private String orderLogsDescribe;

    /**
     * 更新时间
     */
    @TableField("logs_update_time")
    private LocalDateTime logsUpdateTime;

    /**
     * 操作人
     */
    @TableField("logs_update_person")
    private String logsUpdatePerson;

    /**
     * 操作人类型 0系统自动 1用户 2物业
     */
    @TableField("logs_person_type")
    private Integer logsPersonType;
    /**
     * 物业信息Id
     * */
    @TableField("certified_info_id")
    private Integer certifiedInfoId;

    public OrderLogs(Integer orderLogsId, Integer orderInfoId, String orderInfoNum, String orderLogsDescribe, LocalDateTime logsUpdateTime, String logsUpdatePerson, Integer logsPersonType) {
        this.orderLogsId = orderLogsId;
        this.orderInfoId = orderInfoId;
        this.orderInfoNum = orderInfoNum;
        this.orderLogsDescribe = orderLogsDescribe;
        this.logsUpdateTime = logsUpdateTime;
        this.logsUpdatePerson = logsUpdatePerson;
        this.logsPersonType = logsPersonType;
    }

    /**
     * 无参构造函数
     * */
    public OrderLogs() {
    }
}
